#include <iostream>
#include <fstream>
#include "Identity.h"
#include "globalFile.h"
#include "student.h"
#include "teacher.h"
#include "manager.h"

using namespace std;

int main() {
    int select=0;
    while (true){
        cout << "======================  欢迎来到机房预约系统  ====================="<< endl;
        cout << endl << "请输入您的身份" << endl;
        cout << "---------------------------------\n";
        cout << "|                                \n";
        cout << "|          1.学生代表             \n";
        cout << "|                                \n";
        cout << "|          2.老    师             \n";
        cout << "|                                \n";
        cout << "|          3.管 理 员             \n";
        cout << "|                                \n";
        cout << "|          0.退    出             \n";
        cout << "|                                \n";
        cout << "---------------------------------\n";
        cout << "输入您的选择: ";
        cin>>select;
        switch (select) {
            case 1: //学生身份
                //LoginIn(STUDENT_FILE, 1);
                break;
            case 2: //老师身份
                //LoginIn(TEACHER_FILE, 2);
                break;
            case 3:  //管理员身份
                //LoginIn(ADMIN_FILE, 3);
                break;
            case 0 :  //退出系统
                cout << "欢迎下次使用" << endl;
                return 0;
                break;
            default:
                cout << "输入有误，请重新选择！" << endl;
                break;
        }
    }
    return 0;
}